Rails.application.routes.draw do
  
  get 'sessions/new'

  get 'users/new'

  root 'static_pages#home'
  get 'help' => 'static_pages#help'
  get 'home' => 'static_pages#home'
  get 'signup' => 'users#new'
  get 'login' => 'sessions#new'
  post 'login' => 'sessions#create'
  delete 'logout' => 'sessions#destroy'
  get 'edit' => 'user#edit'


  resources :products
  resources :users
  resources :baskets
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
